package kylin.controller.admin;

import java.util.List;

import kylin.entity.AdminPower;
import kylin.service.AdminPowerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping(value="manage/power")
public class AdminPowerController {

	@Autowired
	private AdminPowerService adminPowerService;

	/**
	 * <p>Method Name : ajaxShow</p>
	 * <p>Method Desc : 获取所有的菜单</p>
	 * @Date 2015年9月22日 上午10:35:35
	 * @Author XQL
	 * @return
	 */
	@RequestMapping("ajaxShow")
	public @ResponseBody List<AdminPower> ajaxShow(){
		return adminPowerService.getMenu();
	}
}
